﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Account/register.master"
    AutoEventWireup="true" CodeFile="Reg2.aspx.cs" Inherits="Account_Reg2" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .input_line
        {
            line-height: 50px;
            clear: both;
        }
        .input_label
        {
            float: left;
            width: 130px;
            text-align: right;
        }
        .input_label_font
        {
            font-size: 12pt;
            font-weight: bold;
        }
        input[type="text"], input[type="password"]
        {
            width: 200px;
            height: 23px;
            font-size: 13pt;
            font-weight: bold;
            border: 1px solid #BCE9F1;
        }
        input[type="button"]
        {
            height: 47px;
            width: 176px;
        }
        label.error
        {
            color: Red;
            margin-left: 10px;
            width: auto;
            display: inline;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div style="border: 1px solid #5193D0; background-color: #f3f7fa">
        <div style="margin: 5px 40px 40px;">
            <div style="width: 100%; padding: 10px 0px;">
                <label style="color: #0C72D1; font-size: 12pt; font-weight: bold;">
                    您的邮箱地址已经通过验证，请在下面设置密码完成注册！</label></div>
            <div style="clear: both; height: 2px; width: 400px; border: 0px; background-color: #DBEEF1">
                &nbsp;
            </div>
            <div class="input_line">
                <div class="input_label">
                    <label class="input_label_font" for="txtEmail">
                        邮箱地址：</label>
                </div>
                <div style="float: left;">
                    <input type="text" runat="server" id="txtEmail" name="txtEmail" disabled="disabled"
                        readonly="readonly" />
                </div>
            </div>
            <div class="input_line">
                <div class="input_label">
                    <label class="input_label_font" for="txtRealName">
                        真实姓名：</label>
                </div>
                <div style="float: left;">
                    <input type="text" runat="server" id="txtRealName" name="txtRealName" />
                </div>
            </div>
            <div class="input_line">
                <div class="input_label">
                    <label class="input_label_font" for="txtPwd">
                        您的密码：</label>
                </div>
                <div style="float: left;">
                    <input id="txtPwd" name="txtPwd" type="password" runat="server" /><br />
                </div>
            </div>
            <div class="input_line">
                <div class="input_label">
                    <label class="input_label_font" for="txtConfirmPwd">
                        确认密码：</label>
                </div>
                <div style="float: left;">
                    <input id="txtConfirmPwd" name="txtConfirmPwd" type="password" runat="server" /><br />
                </div>
            </div>
            <div class="input_line">
                &nbsp;
            </div>
            <div class="input_line" style="padding-left: 50px;">
                <a id="btnRegister" href="#">
                    <img src="<%= PageHelper.Url("/Images/register/registe.jpg") %>" alt="注册" /></a>
            </div>
        </div>
    </div>
    <script type="text/javascript">

        $().ready(function () {
            // validate signup form on keyup and submit
            $("#Form1").validate({
                rules: {
                    ctl00$MainContent$txtRealName: "required",
                    ctl00$MainContent$txtPwd: {
                        required: true,
                        minlength: 6
                    },
                    ctl00$MainContent$txtConfirmPwd: {
                        required: true,
                        minlength: 6,
                        equalTo: "#MainContent_txtPwd"
                    }
                },
                messages: {
                    ctl00$MainContent$txtRealName: "请输入您的真实姓名",
                    ctl00$MainContent$txtPwd: {
                        required: "请输入密码",
                        minlength: "至少要输入6位密码"
                    },
                    ctl00$MainContent$txtConfirmPwd: "两次密码不一致"
                }
            });
            $("#btnRegister").click(function () { $("#Form1").submit(); });
            $("#MainContent_txtRealName").focus();
        });
    </script>
</asp:Content>
